package com.njitzx.mapper;

import com.njitzx.entity.po.Category;
import java.io.Serializable;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;

/**
 * <p>
 * 分类表 Mapper 接口
 * </p>
 *
 * @author 周鑫
 * @since 2024-08-20
 */
@Mapper
public interface CategoryMapper  {

    List<Category> select(Category category);

    Category selectById(Serializable catId);

    void insert(Category category);

    void update(Category category);

    void deleteById(Serializable catId);

    void deleteByIds(String[] split);

    List<Integer> findSubCategoryIds(Integer catId);

    void deleteByIds(List<Integer> list);

    List<Category> selectChildrenByPid(Integer catId);
}
